from textual.app import App, ComposeResult
from textual.widgets import Header, Static, Footer
from textual.containers import Vertical, Center, Horizontal

class TextualApp(App):

    CSS_PATH = "firstapp.css"

    def compose(self) -> ComposeResult:
        yield Header()
        with Horizontal():
            with Center():
                yield Static("Hello, Textual")
        yield Footer()

    def on_mount(self) -> None:
        ''''''
        self.query_one(Static).border_title = "Welcome"

if __name__ == "__main__":
    
    app = TextualApp()
    app.title = 'Textual App'.title()
    app.run()